body{
  min-width: 720px;
  margin: 0;
}

.wrapper {
  margin: 100px auto 0;
}

.game-wrap{
  position: relative;
  width: 600px;
  height: 340px;
  margin: 20px auto;
  overflow: hidden;
  background: url(../images/background.jpg) no-repeat;
  z-index: -1;
}

.tab{
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 600px;
  height: 30px;
}

.start,
.pause{
  outline: none;
  border: none;
  width: 60px;
  height: 30px;
  cursor: pointer;
}

.start{
  position: absolute;
  top: 0;
  left: 0;
  background: url(../images/start.jpg) no-repeat center/60px 30px;
}

.pause{
  position: absolute;
  top: 0;
  left: 150px;
  background: url(../images/pause.jpg) no-repeat center/60px 30px;
}

.score{
  display: inline-block;
  position: absolute;
  top: 0;
  right: 30px;
  height: 30px;
  line-height: 30px;
}

.tips {
  position: absolute;
  padding: 12px;
  width: 260px;
  cursor: move;
  background: #ece5ad;
  top: 100px;
  left: 20px;
  box-sizing: border-box;
  line-height: 24px;
}

.tips .close {
  position: absolute;
  top: 4px;
  right: 4px;
  cursor: pointer;
}

.game-wrap .round{
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ca52da;
  border-radius: 50%;
}

.game-wrap .food{
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #00ffc8;
  border-radius: 50%;
  z-index: 1;
}

.game-wrap .round.head{
  line-height: 20px;
  font-size: 20px;
  color: #fff;
  background-color: transparent;
  
}

.game-wrap .round.round.head.right{
  transform:rotate(0deg);
}

.game-wrap .round.round.head.left{
  transform:rotateY(180deg);
}

.game-wrap .round.round.head.up{
  transform:rotate(270deg);
}

.game-wrap .round.round.head.down{
  transform:rotate(90deg);
}

.game-over{
  display: none;
  position:absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 60px;
  width: 800px;
  height: 500px;
  background-color: rgba(0, 0, 0, .55);
  transition: all 0.6s;
}

.game-over.show{
  display: block;
}

.game-over .over-score{
  margin: 68px auto;
  font-size: 42px;
  color: aqua;
  text-align: center;
}

.game-over .over-text{
  margin: 0 auto;
  font-size: 50px;
  color: #fff;
  text-align: center;
}

.game-over .close{
  position: absolute;
  top: 4px;
  right: 4px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

